import { http } from './http';

export const ApiService = {
  // 用户相关API
  createUser: (userData) => http.post('/users/create', userData),
  login: (userData) => http.post('/users/login', userData),
  logout: () => http.post('/users/logout'),
  rpsemail: (email) => http.post('/users/rpsemail', email),
  changePwd: (password) => http.post('/users/changePwd', password),
  getUser: () => http.post('/users/info'),

  // APIKey相关
  newKey: () => http.post('/api_key/new'),
  delKey: () => http.post('/api_key/del'),
  queryKey: ()=> http.post('/api_key/query')
};